package com.wootion.dizhi.comon;

import jdk.nashorn.internal.objects.annotations.Getter;
import jdk.nashorn.internal.objects.annotations.Setter;

/**
 * 相应结果编码
 *
 */
public enum ResultCode {
	//用户相关
	NORMAL(20000L, "正常响应"),
	HAS_STOPED(20002L, "此计划已停止"),
	ERROR(20003L, "系统异常"),
	FAIL_SUOYIN(20001L, "读取或解析数据索引文件错误");

	private Long code;

	private String message;


	public Long getCode() {
		return code;
	}

	public void setCode(Long code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	ResultCode(Long code, String message) {
		this.setCode(code);
		this.setMessage(message);
	}

}
